package com.bgds.sys.rbac.serviceimpl;

import com.bgds.sys.common.base.BaseDao;
import com.bgds.sys.rbac.dao.PermissionDao;
import com.bgds.sys.rbac.domain.Permission;
import com.bgds.sys.rbac.service.PermissionService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 权限/菜单业务层
 * @author lj
 */
@Slf4j
@Service
public class PermissionServiceImpl implements PermissionService {


    @Autowired
    private PermissionDao permissionDao;
    @Override
    public BaseDao<Permission, Long> getRepository() {
        return permissionDao;
    }

    @Override
    public Permission insert(Permission permission) {
        return permissionDao.save(permission);
    }
}
